# @shuaige : 陈世玉
# @name :test1.py
# @time :2024/12/5 23:14
from selenium import webdriver
import time
path=r'chromedriver.exe'
browser=webdriver.Chrome(path)
url='https://bingli.iiyi.com/show/65743-1.html'
browser.get(url)
i=0
while i<=5:
    i+=1
    a=browser.find_element_by_xpath('//div[@class="case_study position2"]/div[3]')
    print(a.text)
    # time.sleep(2)
#反倒最底部
    browser.execute_script("window.scrollTo(0,document.body.scrollHeight)")
    # time.sleep(2)
    next_page=browser.find_element_by_link_text('下一篇')
    next_page.click()
browser.quit()